package qdu.rg040506.ch1_activity_life_cycle;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;

public class Act2 extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ly_act2);

        Log.i("mytag", "act2 oncreate");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.i("mytag", "act2 onstart");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i("mytag", "act2 onresume");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i("mytag", "act2 onpause");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i("mytag", "act2 onstop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i("mytag", "act2 ondestroy");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i("mytag", "act2 onrestart");
    }
}
